#!/bin/bash
rabbitmqctl eval "rabbit_exchange:declare({resource, <<\"/\">>, exchange, <<\"canal.exchange\">>}, direct, true, false, false, [],<<\"admin\">>)."
rabbitmqctl eval "rabbit_amqqueue:declare({resource, <<\"/\">>, queue, <<\"test-queue\">>}, true, false, [], none,<<\"admin\">>)."
rabbitmqctl eval "rabbit_binding:add({binding, {resource, <<\"/\">>, exchange, <<\"canal.exchange\">>}, <<\"test.routingKey\">>, {resource, <<\"/\">>, queue, <<\"test-queue\">>}, []},<<\"admin\">>)."
echo 'success\n'
